package com.fangcang.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
 * CommandLineRunner和ApplicationRunner是spring-boot提供的两个系统启动后执行的接口
 * 源码参考SpringApplication Line 341
 * @author fangcang
 *
 */
@Configuration
@Order(1)
public class DemoRunner implements CommandLineRunner {

	@Override
	public void run(String... args) throws Exception {
		System.out.println("DemoRunner started");
		
	}

}
